package com.lhf.azkaban.springbatch.example.job.config;

import com.lhf.azkaban.springbatch.example.batchconfig.RepayOrderConfig;
import org.apache.catalina.startup.UserConfig;
import org.springframework.batch.core.configuration.annotation.EnableBatchProcessing;
import org.springframework.batch.core.configuration.support.ApplicationContextFactory;
import org.springframework.batch.core.configuration.support.GenericApplicationContextFactory;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Author:95780
 * @Date: 15:35 2019/11/21
 * @Description: 作业加载到上下文中，让job的作业可以被加载到batch管理中
 */
//@Configuration
//@EnableBatchProcessing(modular = true)
public class BatchJobLoadConfig {

//    @Bean
//    public ApplicationContextFactory loadJobListenerConfig(){
//        return new GenericApplicationContextFactory(JobListenerConfig.class);
//    }
//    @Bean
//    public ApplicationContextFactory loadRepayOrderConfig(){
//        return new GenericApplicationContextFactory(RepayOrderConfig.class);
//    }
//    @Bean
//    public ApplicationContextFactory loadUserConfig(){
//        return new GenericApplicationContextFactory(UserConfig.class);
//    }

}
